#include <stdio.h>
/* count characters in input; 2st version */
main() {
    double nc;

    nc = 0.0;
    while (nc = 0.0; getchar() != EOF; ++nc)
        ;
    printf("%.0f\n", nc);
}